<?php

class yougoFormSignin extends BaseForm {

    public function configure() {
        $this->setWidgets(array(
            'email' => new sfWidgetFormInputText(),
            'password' => new sfWidgetFormInputPassword(),
        ));

        $this->setValidators(array(
            'email' => new sfValidatorString(),
            'password' => new sfValidatorString(),
        ));

        $this->validatorSchema->setPostValidator(new yougoGuardValidatorUser());

        $this->widgetSchema->setNameFormat('signin[%s]');
    }

}

?>
